package com.jdz.gxq.info.admin.employment.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.employment.bo.Employment;

public interface EmploymentService {
	
	/**
	 * Employment检索分页用，查询记录条数
	 * @return
	 */
	public int getEmploymentsCount(String enterpriseName);
	
	/**
	 * Employment检索
	 * @return
	 */
	public List<Employment> getEmployments(Map<String, Object> params);
	
	/**
	 * 追加Employment
	 * @param employment
	 */
	public void insertEmployment(Employment employment);
	
	/**
	 * 更新Employment
	 * @param employment
	 */
	public void updateEmployment(Employment employment);
	
	/**
	 * 通过id得到employment
	 * @param id
	 * @return
	 */
	public Employment getEmploymentById(int id);
	
	/**
	 * 删除Employment
	 * @param employment
	 */
	public void deleteEmployment(int id);
	
	/**
	 * 验证employmentName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkEmploymentName(Employment paramEmployment, int flag);

}
